package controller.server;

import java.io.Serializable;

import model.game2048.Game2048Model;
import model.game2048.State;
/**
 * The Message class hold an implementation of message the will be sent to a server.
 * @author Peled Eldan
 * @author Daniel Manor
 */
public class Message implements Serializable {
	
	private static final long serialVersionUID = -302986062L;
	State state;
	int direction;
	String msg;
	String game;
	
	public Message(State state, String msg, int direction, String game) {
		super();
		this.state = state;
		this.direction = direction;
		this.msg = msg;
		this.game = game;
	}

	public State getState() {
		return state;
	}

	public void setState(State state) {
		this.state = state;
	}

	public int getDirection() {
		return direction;
	}

	public void setDirection(int direction) {
		this.direction = direction;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public String getGame() {
		return game;
	}

	public void setGame(String game) {
		this.game = game;
	}

	
	
	
}